﻿@{
    Layout = "~/Areas/Member/Views/Shared/_Layout.cshtml";
    OA.Model.Notice infoNotice = ViewBag.Notice;
}
<script type="text/javascript" src="~/Content/layuiadmin/layui/layui-xtree/layui-xtree.js"></script>
<div class="breadcrumb"><i class="layui-icon layui-icon-home"></i><a href="/Member/Home">首页</a>>><a href="/Management/Notice">通知管理</a>>><span>指定通知成员</span></div>
<div class="layui-tab layui-tab-brief" lay-filter="user">
    <div class="layui-form layui-tab-content" id="LAY_ucm" style="padding:20px 40px 20px 0;">
        @using (Html.BeginForm(FormMethod.Post, htmlAttributes: new { @class = "layui-form", id = "myForm" }))
        {
            <div class="layui-form-item">
                <label class="layui-form-label" for="Title">组织图</label>
                <div class="layui-input-block">
                    <div id="xtree1" class="xtree_contianer"></div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" for="Title"></label>
                <div class="layui-input-block">
                    <input type="hidden" name="id" value="@infoNotice.ID" />
                    <input type="submit" value="提 交" class="layui-btn mySubmit" />
                </div>
            </div>
        }
    </div>
</div>
<script type="text/javascript">

    layui.use(['form', 'layedit', 'element', 'layer'], function () {
        form = layui.form;
        layer = layui.layer;
        element = layui.element;
        var xtree1 = new layuiXtree({
            elem: 'xtree1'
            ,name:'employees'
            , form: form
            , data: '/Home/GetEmployeeNoticeTree/@infoNotice.ID'
        });
    });
</script>